﻿<?xml version="1.0" encoding="utf-8" ?>
<AdoNetDataAccess connection="$SyrinxDBConnection$" formatter="bizobj of TreeNode">
	<Sql>
		SELECT
		t.id, t.objectId, t.parentId, t.parentHostId, t.rootId,
		c.name, c.keyName, c.depth, c.treeName
		FROM
		ObjectTreeNodes as t
		LEFT OUTER JOIN ObjectTreeCounts as c on c.objectId = t.objectId
		WHERE
			c.keyName = @keyName and c.treeName = @treeName
	</Sql>
	<Param name="keyName" type="String"/>
	<Param name="treeName" type="String"/>
</AdoNetDataAccess>